﻿<Window x:Class="Skauler.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowState="Maximized"
        xmlns:view="clr-namespace:Skauler.Views"
        xmlns:viewmodel="clr-namespace:Skauler.ViewModels"
        Title="SKAULER" Height="600" Width="1000"
        Icon="Images\iconmonstr-book-20-icon-64 (1).ico"
        >
    <Window.Resources>
        <!--<DataTemplate DataType="{x:Type viewmodel:AddStudentViewModel}">
            <view:AddStudent/>
        </DataTemplate>-->
        <DataTemplate DataType="{x:Type viewmodel:AddEmployeeDetailsViewModel}">
            <view:EmployeeDetails/>
        </DataTemplate>
        <Style x:Key="MenuItemStyle" TargetType="{x:Type MenuItem}">
            <Style.Setters>
                <Setter Property="Command" Value="{Binding Path=Command}" />
                <Setter Property="FontSize" Value="12"/>
            </Style.Setters>
        </Style>
        <HierarchicalDataTemplate x:Key="MenuDataTemplate"
                                  ItemsSource="{Binding Path=SubItem}"
                                  ItemContainerStyle="{StaticResource MenuItemStyle}"
                                  >
            <ContentPresenter Content="{Binding ItemName}" />
        </HierarchicalDataTemplate>

    </Window.Resources>
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FFF6DBD7" Offset="0"/>
                <GradientStop Color="White" Offset="0.206"/>
                <GradientStop Color="#FFF8E7E7" Offset="0.049"/>
            </LinearGradientBrush>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="35"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="16"/>
            <RowDefinition Height="30"/>
            <RowDefinition Height="16"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="32"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="10"/>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="400"/>
        </Grid.ColumnDefinitions>
        <TextBlock Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" Grid.RowSpan="2" 
                   FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" 
                   Text="{Binding SchoolDetails.SchoolName}" FontSize="34" 
                   HorizontalAlignment="Center" FontWeight="Bold"/>
        <TextBlock Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2"
                   FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" 
                   Text="{Binding SchoolDetails.SchoolAddress}" FontSize="14" 
                   HorizontalAlignment="Center" FontWeight="Bold"/>
        <StackPanel Grid.Row="0" Grid.Column="3" HorizontalAlignment="Right" Orientation="Horizontal">
            <TextBlock Text="sign-in" FontSize="14" FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" FontWeight="Bold" Margin="0,0,10,0"/>
            <TextBlock Text="settings" FontSize="14" FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" FontWeight="Bold" Margin="0,0,10,0"/>
            <TextBlock Text="help" FontSize="14" FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" FontWeight="Bold" Margin="0,0,10,0"/>
        </StackPanel>
        <Rectangle Grid.Row="3" Grid.Column="0" Fill="#FFDF0C0C" Grid.RowSpan="2"/>
        <Menu Grid.Row="3" ItemsSource="{Binding Path=MainMenuGroup}"
                      Grid.Column="1" 
                      Grid.ColumnSpan="3" 
                      Margin="15,0,0,0"
              ItemTemplate="{StaticResource MenuDataTemplate}"
              FontSize="24" FontFamily="Segoe UI Light" Foreground="#FF2E2E2E" Background="{x:Null}"/>
        
        <ScrollViewer Grid.Row="5" Grid.Column="2" Grid.ColumnSpan="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <ContentControl Content="{Binding CurrentPage}" />
        </ScrollViewer>

    </Grid>
</Window>
